package com.qiaoba.module.system.entity.param;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import javax.validation.constraints.Size;

/**
 * 字典数据 查询参数
 *
 * @author ailanyin
 * @date 2023-09-09 17:26:13
 */
@Getter
@Setter
@NoArgsConstructor
public class SysDictDataParam {

    @Schema(description = "字典类型")
    @Size(max = 30, message = "字典类型不能超过{max}个字符")
    private String dictType;

    @Schema(description = "字典标签")
    @Size(max = 30, message = "字典标签不能超过{max}个字符")
    private String dictLabel;

    @Schema(description = "状态（1正常 0停用）")
    @Size(max = 1, message = "状态不能超过{max}个字符")
    private String status;

    public SysDictDataParam(String dictType) {
        this.dictType = dictType;
    }
}
